/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-30
 * Time: 20:39
 */
public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addLast(4);

        myLinkedList.disPlay();

        myLinkedList.addIndex(1,8);
        myLinkedList.addIndex(2,9);

        myLinkedList.disPlay();

        myLinkedList.remove(9);

        myLinkedList.disPlay();

        myLinkedList.addFirst(1);
        myLinkedList.disPlay();
        myLinkedList.removeAllKey(1);
        myLinkedList.disPlay();

        myLinkedList.clear();
        myLinkedList.disPlay();
    }
}
